import { ItemType, type IItem } from "@/type/item";

export const toolDatabase: Record<string, IItem> = {
  axe: {
    id: "axe",
    name: "斧头",
    description: "用于砍伐树木的工具",
    type: ItemType.TOOL,
    stackable: false,
    maxStack: 1,
    sellPrice: 50,
    buyPrice: 200,
    placeable: false,
    imageUrl: "/src/assets/images/tiles/tools.png",
    sourceRect: {
      x: 80,
      y: 160,
      width: 16,
      height: 16,
      drawWidth: 44, // 放大2.75倍
      drawHeight: 44,
      offsetX: 0,
      offsetY: 0,
      dragOffsetY: 0,
      dragOffsetX: 0,
    },
  },
  hoe: {
    id: "hoe",
    name: "锄头",
    description: "用于耕地的工具",
    type: ItemType.TOOL,
    stackable: false,
    maxStack: 1,
    sellPrice: 50,
    buyPrice: 200,
    placeable: false,
    imageUrl: "/src/assets/images/tiles/tools.png",
    sourceRect: {
      x: 80,
      y: 34,
      width: 16,
      height: 16,
      drawWidth: 44,
      drawHeight: 44,
      offsetX: 0,
      offsetY: 4,
      dragOffsetY: 0,
      dragOffsetX: 0,
    },
  },
};
